package com.engine4cloud.tdf.supervision.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 法律文书
 *
 * @author wenjie
 * @date 2024-04-01 14:23:35
 */
@Data
@TableName("jzdx_legal_instrument")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "法律文书")
public class JzdxLegalInstrumentEntity extends Model<JzdxLegalInstrumentEntity> {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 矫正对象编号
     */
    @Schema(description = "矫正对象编号")
    private String rybh;

    /**
     * 文书编号
     */
    @Schema(description = "文书编号")
    private String lcbh;

    /**
     * 文书类型
     */
    @Schema(description = "文书类型")
    private String lx;

    /**
     * 签发机构
     */
    @Schema(description = "签发机构")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String qfjg;

    /**
     * 签发时间
     */
    @Schema(description = "签发时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime qfsj;

    /**
     * 备注
     */
    @Schema(description = "备注")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String bz;

    /**
     * createBy
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "createBy")
    private String createBy;

    /**
     * createTime
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "createTime")
    private LocalDateTime createTime;

    /**
     * updateBy
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "updateBy")
    private String updateBy;

    /**
     * updateTime
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "updateTime")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * tenantId
     */
    @Schema(description = "tenantId")
    private Long tenantId;
}